package com.lrkj.workorder.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工单类型对象 tb_work_order_type
 *
 * @author yajun_ren
 * @date 2022-04-19
 */
@Data
public class WorkOrderType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 类型代码 */
    @Excel(name = "类型代码")
    private String typeCode;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String typeName;

    /** 图标 */
    @Excel(name = "图标")
    private String typeIcon;

    /** 是否回访 */
    @Excel(name = "是否回访")
    private String whereVisit;

    /** 关联表单 */
    @Excel(name = "关联表单")
    private String associationForm;

    /** 关联回单 */
    @Excel(name = "关联回单")
    private String associationReceipt;

    //背景颜色
    private String background;

    //排序
    private Integer orderNum;

    private Integer num;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("typeIcon", getTypeIcon())
            .append("whereVisit", getWhereVisit())
            .append("associationForm", getAssociationForm())
            .append("associationReceipt", getAssociationReceipt())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
